[Top] [Prev] [Next] [Bottom]
[Contents]
SaPopulateListItem
Populates list items with data.
#include "SaRnHtml.h"
void SaPopulateListItem(Widget list,
XtPointer client_data,
SaCallbackStruct *cbs);
Arguments
- list
- Not used.
- client_data
- Not used.
- cbs
- SaCallbackStruct callback structure containing the data.
Return Values
None.
Populates list items with data. When using this callback, the HTML template fragment will read:
<UL>
<LI>##Sa_authors##</LI>
</UL>
This call assumes that the list and at least one list item has been declared in the HTML template. This will produce one list item for each row in cbs
. If more than one column is bound to the site, each row will consist of columns concatenated. The columns are aligned by padding in spaces. They will only look aligned to the user if the list item is within <PRE> </PRE> tags. SaPopulateListItem
can work with several template fragments, for example:
<OL>
<LI>##Sa_authors##</LI>
</OL>
and
<MENU>
<LI>##Sa_authors##</LI>
</MENU>
For the former, you must determine the order in your Stored Procedure or DSQL Object.
/*** the following ad-hoc example can be used without templates
**/
SaCallbackStruct *cbs;
cbs = SaExecSQL("CEZANNE", "pubs2", SGESYBASE, "select * from
authors");
/***** print html, list, and list item headers *****/
SaPopulateListItem(NULL, NULL, cbs);
/*** print out end of list, list item and html headers ***/
SaFreeCbs(cbs);
- Note: This call is generated automatically by Sapphire/Web through use of the Results Detail Dialog.
See Also
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.